package com.cee.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cee.auditlog.Auditable;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Date;
import java.util.Locale;

/**
 * User Entity
 */
@TableName("cee_user")
@Data
public class User  implements Serializable,Auditable {

    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private String username;
    private String password;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date delDateTime;
    Locale locale;


    /**
     *
     */
    private Date lastRecDelDate;

    /**
     *
     */
    private Date lastRecTxnDate;

    /**
     *
     */
    private String lastRecTxnTypeCode;

    /**
     *
     */
    private String lastRecTxnUserId;

    @Override
    public Date getLastRecDelDate() {
        return lastRecDelDate;
    }

    @Override
    public void setLastRecDelDate(Date lastRecDelDate) {

    }

    @Override
    public String getLastRecTxnTypeCode() {
        return lastRecTxnTypeCode;
    }

    @Override
    public void setLastRecTxnTypeCode(String lastRecTxnTypeCode) {

    }

    @Override
    public Date getLastRecTxnDate() {
        return lastRecTxnDate;
    }

    @Override
    public void setLastRecTxnDate(Date lastRecTxnDate) {

    }

    @Override
    public String getLastRecTxnUserId() {
        return lastRecTxnUserId;
    }

    @Override
    public void setLastRecTxnUserId(String lastRecTxnUserId) {
        this.lastRecTxnUserId = lastRecTxnUserId;
    }
}
